<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title>Patient List</title>
</head>
<body>
<!-- MENU -->
<div id="menu">
  <ul>
    <li class="first">
      <g:link title="Home" class="active" controller="dashboard">Dashboard</g:link>
    </li>
    <li>
      <g:link title="Claims" controller="claim" action="list">Claims</g:link>
    </li>
    <li>
      <g:link title="Personal Info" controller="employee" action="list">Employee</g:link>
    </li>
    <li>
      <g:link title="Dependants" controller="dependants" action="list">Dependants</g:link>
    </li>
  </ul>
</div>

<!-- WRAPPER -->
<div id="wrapper">
  <div id="page">
    <div id="content">
      <div id="box1">
        <h1>Level List</h1>
        <g:if test="${flash.message}">
          <div class="message">${flash.message}</div>
        </g:if>
        <div class="list">
          <table class="table2">
            <thead>
            <tr>
              <g:sortableColumn property="submissionNo" title="Submission No"/>
              <th>Provider</th>
              <th>Claimer</th>
              <th>Status</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${claimInstanceList}" status="i" var="claim">
              <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                <td><g:link controller="claim" action="show" id="${claim.id}">${claim.submissionNo}</g:link></td>
                <td>${claim?.clinic?.name}</td>
                <td>${claim?.employee?.name}</td>
                <td>${claim?.status}</td>
              </tr>
            </g:each>
            </tbody>
          </table>
        </div>
        <div class="paginateButtons">
          <g:paginate total="${Level.count()}"/>
        </div>
      </div>
    </div>
  </div>

  <!-- SIDE BAR -->
  <div id="sidebar">

    <!-- BOX 5 -->
    <div id="box5" class="boxed">
      <div class="title">
        <h2>Action</h2>
      </div>
      <div class="b" style="clear: both;">
        <div class="bl"></div>
        <div class="br"></div>
      </div>
    </div>
    <!-- end #box5 -->
  </div>
  <!-- end #sidebar -->
  <div style="clear: both;"></div>
</div>
</div>
</body>
</html>
